﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;

namespace AimGameEngine.NodeEditorObject
{
    partial class PropretyScreen : Form
    {
        NodeScreen mynodscreen;
        public PropretyScreen(NodeScreen mynodscreen)
        {
            InitializeComponent();
            this.mynodscreen = mynodscreen;
            this.numFacein.Value = (decimal)this.mynodscreen.FaceIn;
            this.numFaceout.Value = (decimal)this.mynodscreen.FaceOut;
            this.comboStart.SelectedIndex = Convert.ToInt32(this.mynodscreen.StartherE);

        }

        private void okButton_Click(object sender, EventArgs e)
        {
            this.mynodscreen.FaceIn = (Double)this.numFacein.Value;
            this.mynodscreen.FaceOut = (Double)this.numFaceout.Value;
            if (comboStart.SelectedIndex == 1)
            {
                mynodscreen.Restete();
                mynodscreen.StartherE = Convert.ToBoolean(this.comboStart.SelectedIndex);
            }
        }

    }
}
